/* 让内容区域 container大于或等于1280px的时候始终保持1280的宽度 */
@media screen and (min-width:1280px) {
    .container {
        width: 1280px;
    }
}

body {
    background-color: #f5f5f5;
}

.container {
    background-color: white;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

a {
    color: #666;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #333;
}



header {
    padding-left: 0 !important;
}

header .logo {
    display: block;
    width: 100%;
    background-color: #337ab7;
}




header a img {
    display: block;
    /* width: 100%; */
    /* 让图片在小屏幕小保持图片原来的大小；最大宽度大于自己本身的宽度 */
    max-width: 100%;
    margin: auto;
}

/* 超小屏幕小显示 */
header a span {
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: white;
    font-size: 18px;
}

.nav ul li {

    background-color: #ccc;
}

/* 进入小屏幕和超小屏幕，让导航栏同一行显示 */
@media screen and (max-width:991px) {
    .nav ul li {
        float: left;
        /* 5个li各占20% */
        width: 20%;
    }

    article {
        margin-top: 10px;
    }
}

/* 进入小屏幕和超小屏幕，让导航栏字体变小 */
@media screen and (max-width:767px) {
    .nav ul li a {
        font-size: 12px !important;
        padding: 0 !important;
    }
}

.nav ul li a {
    display: block;
    height: 50px;
    line-height: 50px;
    padding-left: 30px;
    font-size: 18px;
}

.nav ul li a::before {
    padding-right: 10px;
}

.nav ul li:hover {
    background-color: white;
}

/* 新闻部分 */
/* 超小屏幕（手机）的时候第一个li占100%；其他的各占50% */
@media screen and (max-width:767px) {
    article ul li {
        width: 50% !important;

    }

    article ul li:first-child {
        width: 100% !important;
    }
}

article ul li {
    float: left;
    width: 25%;
    height: 128px;
    padding-right: 10px;
    margin-bottom: 10px;
}

article ul li:first-child {
    width: 50%;
    height: 266px;
}

article ul li:first-child p {
    font-size: 20px;
    font-weight: 700;
    line-height: 40px;
    padding: 0 10px;
}

article ul li a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

article ul li a img {
    width: 100%;
    height: 100%;
}

article ul li a p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 41px;
    padding: 5px 10px;
    margin-bottom: 0;
    font-size: 12px;
    color: white;
    background-color: rgba(0, 0, 0, .5);
}

/* 第二部分 */
@media screen and (max-width:767px) {
    .publish .row h3 {
        font-size: 14px;
    }
}

.publish .row {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.pic {
    padding-top: 20px;
}

.pic img {
    width: 100%;
}

.banner img {
    width: 100%;
}

.hot {
    margin-top: 30px;
    padding: 0 20px;
    border: 1px solid #ccc;
}

.hot span {
    margin-bottom: 30px;
    border-radius: 0;
}

.hot p {
    font-size: 12px;
}